;;; auctex-settings.el ---
;; -*- Emacs-Lisp -*-

;; Time-stamp: <2010-04-13 17:52:23 Tuesday by Mugua>

;; This  file is free  software; you  can redistribute  it and/or
;; modify it under the terms of the GNU General Public License as
;; published by  the Free Software Foundation;  either version 3,
;; or (at your option) any later version.

;; This file is  distributed in the hope that  it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR  A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You  should have  received a  copy of  the GNU  General Public
;; License along with  GNU Emacs; see the file  COPYING.  If not,
;; write  to  the Free  Software  Foundation,  Inc., 51  Franklin
;; Street, Fifth Floor, Boston, MA 02110-1301, USA.


;;; Commentary:
;;
;; Edit by zuojg

;;; Code:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; AUCTex, 通过Autex 可以在Emacs 里直接写TeX 文档
;; 这对于数学公式和图片的显示很有优势
;; Edit by zuojg
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

;;默认 PDFmode
;;;###autoload
(eval-after-load "tex"
  '(progn
     (TeX-global-PDF-mode t)))

;;windows下预览
;;;###autoload
(eval-after-load "tex"
  '(progn
     (setq TeX-output-view-style
           (cons '("^pdf$" "." "start \"title\" %o") TeX-output-view-style)
           ;或(cons '("^pdf$" "." "cmdproxy /C %o ") TeX-output-view-style)
      )))

(provide 'auctex-settings)
